{% extends "base.html" %}
{% block content %}
<div class="container-fluid">
	<div class="row">
		<div class="col-sm-3 col-md-2 sidebar">
			<ul class="nav nav-sidebar">
				{% if session['role'] in ['service', 'director', 'review', 'admin', 'super'] %}
				<li id="nav_user">
					<a href="#OutsideMenu" data-toggle="collapse">外部账户</a>
					<ul id="OutsideMenu" class="nav nav-list collapse col-md-offset-1">  
						<li id="li_individual"><a href="{{ url_for('outside.individual_list') }}">个人用户</a></li>  
						<li id="li_company"><a href="{{ url_for('outside.company_list') }}">商家用户</a></li>  
					</ul>
				</li>
				{% endif %}
				{% if session['role'] in ['hr', 'admin', 'super'] %}
				<li id="nav_staff">
					<a href={{ url_for('org.org_list') }}>组织架构</a>
				</li>
				{% endif %}
			</ul>
		</div>
		<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">	
			{% for message in get_flashed_messages() %}
			<div class="alert alert-warning">
				<button type="button" class="close" data-dismiss="alert">&times;</button>
				{{ message }}	
			</div>
			{% endfor %}
				
		{% block page_content %}
		<h1 class="page-header">{{ title }}</h1>
		{% endblock %}
	 </div>
    </div>
</div>
{% endblock %}
